import Vue from 'vue'
import App from './App.vue'
import store from './utils/store'
import router from './utils/router'
import './assets/style.css'
import dataV from '@jiaminghi/data-view'
import { startUpdate } from './utils/ann'
import { Button, Select, Dialog, Input, Form, FormItem, Table, TableColumn, Loading } from 'element-ui';
import allData from './assets/all_data.json'

Vue.prototype.$ELEMENT = { size: 'small', zIndex: 3000 };

Vue.component(Button.name, Button);
Vue.component(Select.name, Select);
Vue.component(Dialog.name, Dialog);
Vue.component(Input.name, Input);
Vue.component(Form.name, Form);
Vue.component(FormItem.name, FormItem);
Vue.component(Table.name, Table);
Vue.component(TableColumn.name, TableColumn);
Vue.use(Loading.directive);

Vue.prototype.$loading = Loading.service;

Vue.use(dataV)
Vue.config.productionTip = false
Vue.prototype.$store = store
window.allData = allData
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')

startUpdate()